package constant.milk.cashbook.util;

import constant.milk.cashbook.R;
import android.content.Context;
import android.graphics.Typeface;


public class MilkTypeFace
{
	private static MilkTypeFace milkTypeFace = new MilkTypeFace();
	
	private static Typeface typeface = null; 
	
	public static MilkTypeFace getInstance(Context context)
	{
		if (typeface == null)
		{
			typeface = Typeface.createFromAsset(context.getAssets(), context.getString(R.string.fontFileName));
		}
		
		return milkTypeFace;
	}
	
	public Typeface getTypeface(Context context)
	{
		if (typeface == null)
		{
			typeface = Typeface.createFromAsset(context.getAssets(), context.getString(R.string.fontFileName));
		}
		
		return typeface;
	}
}
